const app = getApp()

Component({
  data: {
    info: null
  },

  lifetimes: {
    ready(option) {
      app.minipet.where({
        _id: app.markerId
      }).get({
        success: (res) => {
          this.setData({
            info: res.data[0]
          })
        }
      })
    }
  },

  handleBackTap() {
    wx.navigateBack()
  }
})